/* 
 * File:   Nivel.cpp
 * Author: agu
 * 
 * Created on 7 de junio de 2014, 18:54
 */

#include "Nivel.h"

Nivel::Nivel() {
    //levantarlo del archivo
    this->id = 0;
    this->width = 0;
    this->height = 0;
    this->minHeight = 0;
    this->minWidth = 0;
    this->maxHeight = 20;
    this->maxWidth = 20;
}

Nivel::~Nivel() {
}

unsigned int Nivel::getId() {
    return this->id;
}

void Nivel::incrementMapWidth() {
    this->width++;
}

void Nivel::incrementMapHeight() {
    this->height++;
}

bool Nivel::checkHeight() {
    if ((this->height > this->minHeight) && (this->height < this->maxHeight))
        return true;
    return false;
}

bool Nivel::checkWidth() {
    if ((this->width > this->minWidth) && (this->width < this->maxWidth))
        return true;
    return false;
}

bool Nivel::checkDimension() {
    return (this->checkWidth() && this->checkHeight());
}

unsigned int Nivel::getMapWidth() {
    return this->width;
}

unsigned int Nivel::getMapHeight() {
    return this->height;
}